<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta HTTP-EQUIV="pragma" CONTENT="no-cache"> 
	<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate"> 
	<meta HTTP-EQUIV="expires" CONTENT="0">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>
		<c:if test="${method == 'update' }">修改投资标的</c:if>
	    <c:if test="${method == 'add' }">新增投资标的</c:if>
	    <c:if test="${method == 'detail' }">查看投资标的</c:if>
		
	</title>
</head>
<body class="sub-page">
	<jsp:include page="/WEB-INF/jsp/system/index/homeHead.jsp">
		<jsp:param name="currentActive" value="tzjy" />
	</jsp:include>
	
	<div class="location">
		<i class="fas fa-home"></i>
		<p>您现在的位置：主页</p>
		<p class="current">&gt;投资交易</p>
		<p class="current">&gt;投资标的</p>
		<p class="current">&gt;
			<c:if test="${method == 'update' }">修改</c:if>
		    <c:if test="${method == 'add' }">新增</c:if>
		    <c:if test="${method == 'detail' }">查看</c:if>
		</p>
	</div>
	<div class="container">
		<form name="invesSecurAddForm" id="invesSecurAddForm" method="post" action="<%=context%>business/invesSecur/insertInvesSecur.do" class="form-horizontal">
			<div class="page-content" style="min-height: 600px;">
				<div class="page-header">
					<h4 class="page-title">
						<c:if test="${method == 'update' }">修改投资标的信息</c:if>
				    	<c:if test="${method == 'add' }">新增投资标的信息</c:if>
				    	<c:if test="${method == 'detail' }">查看投资标的信息</c:if>
					</h4>
				</div>
				<div class="page-body"> 
					<input type="hidden" id="method" name="method" value="${method}">
					<input type="hidden" id="investSecurId" name="investSecurId" value="${vo.investSecurId}">
					<div class="form-group">
						<label class="col-sm-2 control-label">标的代码<span class="text-danger">*</span></label>
						<div class="col-sm-3 form-inner">
							<input type="text" placeholder="标的代码" class="form-control" name="securCode" id="securCode" title="${vo.securCode}" value="${vo.securCode}" />
						</div>
						<label class="col-sm-2 control-label">标的名称<span class="text-danger">*</span></label>
						<div class="col-sm-3 form-inner">
							<input type="text" placeholder="标的名称" class="form-control" name="securName" id="securName" title="${vo.securName}" value="${vo.securName}" />
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-sm-2 control-label">标的类型<span class="text-danger">*</span></label>
						<div class="col-sm-3 form-inner">
							<select placeholder="标的类型" class="form-control use-select2" name="securType" id="securType" >
								<option value="01" ${vo.securType == '01' ?  'selected' : ''}>股票</option>
			            		<option value="02" ${vo.securType == '02' ?  'selected' : ''}>债券</option>
			            		<option value="03" ${vo.securType == '03' ?  'selected' : ''}>基金</option>
			            		<option value="04" ${vo.securType == '04' ?  'selected' : ''}>回购</option>
			            		<option value="05" ${vo.securType == '05' ?  'selected' : ''}>管理人</option>
			            		<option value="06" ${vo.securType == '06' ?  'selected' : ''}>资管计划</option>
			            		<option value="07" ${vo.securType == '07' ?  'selected' : ''}>信托</option>
				            	<option value="08" ${vo.securType == '08' ?  'selected' : ''}>年金</option>
							</select>
						</div>
						<label class="col-sm-2 control-label">标的总份额<span class="text-danger">*</span></label>
						<div class="col-sm-3 form-inner">
							<input type="text" placeholder="标的总份额" class="form-control" name="securTotalShare" id="securTotalShare" title="${vo.securTotalShare}" value="${vo.securTotalShare}"/>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-sm-2 control-label">份额合计可投资比例<span class="text-danger">*</span></label>
						<div class="col-sm-3 form-inner">
							<input type="text" placeholder="份额合计可投资比例" class="form-control" name="shareSumProportion" id="shareSumProportion" title="${vo.shareSumProportion}" value="${vo.shareSumProportion}"/>
						</div>
						<label class="col-sm-2 control-label">份额单产品可投资比例<span class="text-danger">*</span></label>
						<div class="col-sm-3 form-inner">
							<input type="text" placeholder="份额单产品可投资比例" class="form-control" name="shareSingleProportion" id="shareSingleProportion" title="${vo.shareSingleProportion}" value="${vo.shareSingleProportion}"/>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-sm-2 control-label">标的净值文件位置<span class="text-danger">*</span></label>
						<div class="col-sm-3 form-inner">
							<input type="text" placeholder="标的净值文件位置" class="form-control" name="securFilePath" id="securFilePath" title="${vo.securFilePath}" value="${vo.securFilePath}"/>
						</div>
						<label class="col-sm-2 control-label">标的申购上限<span class="text-danger">*</span></label>
						<div class="col-sm-3 form-inner">
							<input type="text" placeholder="标的申购上限" class="form-control" name="purchaseLimit" id="purchaseLimit" title="${vo.purchaseLimit}" value="${vo.purchaseLimit}"/>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-sm-2 control-label">标的认购上限<span class="text-danger">*</span></label>
						<div class="col-sm-3 form-inner">
							<input type="text" placeholder="标的认购上限" class="form-control" name="subscribeLimit" id="subscribeLimit" title="${vo.subscribeLimit}" value="${vo.subscribeLimit}"/>
						</div>
						<label class="col-sm-2 control-label">标的最小认购额<span class="text-danger">*</span></label>
						<div class="col-sm-3 form-inner">
							<input type="text" placeholder="标的最小认购额" class="form-control" name="minSubscribeShare" id="minSubscribeShare" title="${vo.minSubscribeShare}" value="${vo.minSubscribeShare}"/>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-sm-2 control-label">补充信息</label>
						<div class="col-sm-8 form-inner">
							<input type="text" placeholder="补充信息" class="form-control" name="supplyInfo" id="supplyInfo" title="${vo.supplyInfo}" value="${vo.supplyInfo}"/>
						</div>
					</div>
				</div>
				<c:if test="${method == 'detail' }">
					<div class="page-footer">
				         <button type="button" class="btn btn-primary btn-save" onclick="window.close();" id="closeBtn" name="closeBtn">关闭</button>
				    </div>
				</c:if>
				<c:if test="${method != 'detail' }">
					<div class="page-footer">
				         <button type="button" class="btn btn-primary btn-save" data-loading-text="保存中..." id="submitBtn" name="submitBtn" onclick="doSubmit()">保存</button>
				         <button type="button" class="btn btn-link" onclick="window.close();" id="closeBtn" name="closeBtn">取消</button>
				    </div>
				</c:if>
			</div>
		</form>
	</div>
<script type="text/javascript" src="<%=context%>resources/modules/business/investTrade/investTradeAdd.js?r=<%=Math.random()%>"></script>
<script type="text/javascript">
		var basePath = "<%=context%>";
		var primaryPath = '<%=context%>' +'business/invesSecur/';
		setPath(primaryPath,basePath);
</script>
</body>
</html>